package v02;

import elements.CaseDevoir;
import junit.framework.TestCase;

public class CaseDevoirTest extends TestCase {

	CaseDevoir uneCaseDevoir;
	protected void setUp() throws Exception {
		super.setUp();
		uneCaseDevoir = new CaseDevoir(1, "Case Absence", 150, 90);
	}

	protected void tearDown() throws Exception {
		super.tearDown();
		uneCaseDevoir = null;
	}
	
	public void testCreationCaseDevoir()
	{
		assertEquals("Id Correct",1,uneCaseDevoir.getId());
		assertEquals("Nom Correct","Case Absence",uneCaseDevoir.getNom());
		assertEquals("Position X Correct",150,uneCaseDevoir.getPosX());
		assertEquals("Position Y Correct",90,uneCaseDevoir.getPosY());
	}

}
